package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    //用户下单
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    //用户端订单分页查询
    PageResult historyOrders(OrdersPageQueryDTO ordersPageQueryDTO);

    //查询订单详情
    OrderVO getByIdOrderDetail(Long id);

    //取消订单
    void cancel(Long id);

    void repetition(Long id);

    //客户端订单分页查询
    PageResult pageQuery(OrdersPageQueryDTO ordersPageQueryDTO);

    //各个状态的订单数量统计
    OrderStatisticsVO statistics();

    //确认订单
    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    //拒绝订单
    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    //店家取消订单
    void Cancel(OrdersCancelDTO ordersCancelDTO);

    //派送订单
    void delivery(Long id);

    //完成订单
    void complete(Long id);

    //支付订单
    Orders payment(OrdersPaymentDTO ordersPaymentDTO);

    //催单
    void reminder(Long id);
}
